# print('%2d-%02d' % (3, 1))
# print('%.2f' % 3.1415926)

# s1=72
# s2=85
# r=(s2 /s1 - 1) * 100
# # 格式化字符串 %
# print('小明的成绩提高了%.1f%%' % r)
# # 格式化字符串 format
# print('小明的成绩提高了{0:.1f}%'.format(r))
# # 格式化字符串 f-string
# print(f'小明的成绩提高了{r:.1f}%')



# L = [
#     ['Apple', 'Google', 'Microsoft'],
#     ['Java', 'Python', 'Ruby', 'PHP'],
#     ['Adam', 'Bart', 'Bob']
# ]

# # 打印Apple:
# print(L[0][0])
# # 打印Python:
# print(L[1][1])
# # 打印Bob:
# print(L[2][2])



# age = 4
# if age >= 18:
#     print("adult")
# elif age >= 12:
#     print('teenager')
# else:
#     print('kid')


# temp = input('请输入生日年份：')
# birth = int(temp)
# if birth >= 2000:
#     print('零零后')
# else:
#     print('零零前')

height = 1.75
weight = 80.5
bmi = weight/(height**2)
if bmi < 18.5:  #与c相同 若有一个判断为真 后续elif和else都不再执行
    print('过轻')
elif bmi < 25:
    print('正常')
elif bmi < 28:
    print('过重')
elif bmi < 32:
    print('肥胖')
else:
    print('严重肥胖')